﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QuestLib
{
    public abstract class ICondition
    {

        public abstract int GetEventType();


        public bool OnEvent(EvetArg eventID)
        {
            if (GetEventType() == eventID._eventType)
            {
                if (_OnEvent(eventID))
                {
                    _nRet = eventID._ret;
                    return true;
                }
            }

            return false;
        }


        public abstract bool _OnEvent(EvetArg eventID);

        EvetArg _waitEventID;
        
        
        
        public int _nRet;

        //bool Do();
        }


    //class ConEvent : ICondition
    //{
    //    EVENT _event;
    //    uint _param;
    //    public ConEvent(EVENT gEvent, uint param)
    //    {
    //        _event = gEvent;
    //        _param = param;
    //    }

    //    //bool Do()
    //    //{
    //    //    return false;
    //    //}

    //    //bool IsComplete()
    //    //{

    //    //}

    //}




}
